sensible-lomua
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 1 Aug 2012 08:41:17 +0000 (08:41 +0000)
committerRene Engelhard <rene@debian.org>
Wed, 1 Aug 2012 08:41:17 +0000 (08:41 +0000)
===================================================================

Gbp-Pq: Name sensible-lomua.diff

officecfg/registry/data/org/openoffice/Office/Common.xcu
shell/source/unix/misc/senddoc.sh

index 744c7f21602123021464c47c8170d9d559064417..fa8e174fd6df92d0a11f95bf33e461ba3b7ec9e2 100644 (file)
   </node>
   <node oor:name="ExternalMailer" install:module="unixdesktop">
     <prop oor:name="Program">
-      <value oor:external=
-          "com.sun.star.configuration.backend.DesktopBackend ExternalMailer"/>
+      <value>sensible-lomua</value>
     </prop>
   </node>
   <node oor:name="Font">
index 9d63ae3df63b5dd411bb30d0e5d6125fe1cbb1d2..d4229876e3c7aa7bbc1d2105823ae85051e626de 100755 (executable)
@@ -59,6 +59,25 @@ if [ "$1" = "--mailclient" ]; then
     shift
 fi
 
+case `basename "$MAILER"` in
+    sensible-lomua)
+        if [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then
+            MAILER=/usr/bin/evolution
+        elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then
+            MAILER=/usr/bin/kmail
+        elif [ -x /usr/bin/evolution ]; then
+            # default
+            MAILER=/usr/bin/evolution
+        elif [ -x /usr/bin/icedove ]; then
+            # fallback
+            MAILER=/usr/bin/icedove
+        elif [ -x /usr/bin/thunderbird ]; then
+            # fallback
+            MAILER=/usr/bin/thunderbird
+        fi
+        ;;
+esac
+
 # autodetect mail client from executable name
 case `basename "$MAILER" | sed 's/-.*$//'` in